Checks whether a service of a given type exists in the collection.
'Declaration
Public Function Contains(Of )() As Boolean
'Usage
Dim instance As ServiceCollection
Dim value As Boolean
value = instance.Contains(Of TService)()
public: bool Contains<>();
public:
bool Containsgeneric<typename >
();
Type Parameters
- TService
- The type of the service to check for.
Return Value
true if a service object exists with the provided type; otherwise, it is false.